<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>数组</title>
	<script type="text/javascript">

		// city1 = "广州";
		// city2 = "东莞";
		// city3 = "深圳";

		// document.write(city1);
		// 
		// 
		// city = ['广州','东莞',[89,100,89]];

		// // city[1]='北京';

		// city[100]="北京";

		// // 下标或者索引或者键,从0开始
		
		// document.write(city[2][1]);

		// document.write(city);
		// 
		// 
		arr = [5,343,43,3];


		cn = 0;

		for(var i in arr){

			cn = cn +arr[i];
		}

		alert(cn);


		arr = ['广州','深圳',['天河','白云',['沙湾','市桥']]];

		arr[2][2][1];


		










	</script>
</head>
<body>
	
</body>
</html>